package me.yobol.greentable.commons.path;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Yobol
 * 
 * s : Servlet
 * p(page) : Html / Jsp
 * c : Css
 * j : JavaScript
 * r : resource
 * 
 */
public class CPath {
	
	public static String CSS_FOLDER = "/css/";
	
	public static String getCssPath(HttpServletRequest request, String cssName){
		return request.getContextPath() + CSS_FOLDER + cssName;
	}
	
	public static String cHeader(HttpServletRequest request){
		return getCssPath(request, "header.css");
	}
	
	public static String cMain(HttpServletRequest request){
		return getCssPath(request, "main.css");
	}
	
	public static String cFooter(HttpServletRequest request){
		return getCssPath(request, "footer.css");
	}
	
	public static String cCommons(HttpServletRequest request){
		return getCssPath(request, "commons.css");
	}
	
	public static String cRegister(HttpServletRequest request){
		return getCssPath(request, "register.css");
	}
	
	public static String cLogin(HttpServletRequest request){
		return getCssPath(request, "login.css");
	}
}
